<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    $(function() {
        $('#examRecordEditForm').form({
            url : '${path }/examRecord/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_treeGrid这个对象，是因为examRecord.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#examRecordEditForm');
                    parent.$.messager.alert('提示', eval(result.msg), 'warning');
                }
            }
        });
        
    });
</script>
<div style="padding: 3px;">
    <form id="examRecordEditForm" method="post">
        <table class="grid">
            <tr>
                <td>考生姓名</td>
                <td><input name="examineeName" type="text" value="${examRecord.examineeName}" placeholder="考生姓名" class="easyui-validatebox" data-options="required:true" ></td>
                <td>考场编号</td>
                <td><input name="id" type="hidden"  value="${examRecord.id}"><input name="examSiteCode" type="text" value="${examRecord.examSiteCode}" /></td>
                
            </tr>
            <tr>
            <td>考生编号</td>
                <td><input name="examineeNum" type="text" value="${examRecord.examineeNum}" placeholder="考生编号" class="easyui-validatebox" data-options="required:true" ></td>
                <td>科目编号</td>
                <td><input name="courseCode" type="text" value="${examRecord.courseCode}" placeholder="科目编号" class="easyui-validatebox" data-options="required:true" ></td>
              </tr>
            <tr>
                
                <td>子科目编号</td>
                <td><input name="courseSubcode"  class="easyui-numberspinner" value="${examRecord.courseSubcode}" style="widtd: 140px; height: 29px;" required="required" data-options="editable:false"></td>
                <td>考试座位</td>
                <td ><input name="examSiteSeat" value="${examRecord.examSiteSeat}"/></td>
            </tr>
            <tr>
               <td>视频</td>
                <td><input name="video"  value="${examRecord.video}"></td>
                <td>文件</td>
                <td ><input name="file" value="${examRecord.file}"/></td>
            </tr>
            <tr>
            <td>视频分数</td>
                <td><input name="videoScore"  value="${examRecord.videoScore}" style="widtd: 140px;"></td>
                <td>文本分数</td>
                <td colspan="3"><input name="fileScore" style="width: 148px;" value="${examRecord.fileScore}"/></td>
            </tr>
             <tr>
                <td>成绩是否有效</td>
                <td colspan="3"><input name="status" style="width: 148px;" value="${examRecord.status}"/></td>
                <a class="easyui-linkbutton" href="javascript:void(0)" onclick="$('#pid').combotree('clear');" >清空</a></td>
            </tr> 
        </table>
    </form>
</div>
